package com.hutao.manage.pojo;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class FirstLevelMedical {
    private String guid;

    private Integer hospitalId;

    private String citizensGuid;

    private String treatmentNo;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date treatmentDate;

    private Integer treatmentSignId;

    private Integer treatmentTypeId;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date createDate;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date updateDate;

    private Integer status;
    
    public static FirstLevelMedical getFirstLevelMedical(MedicalBasicTemplate medicalBasicTemplate) {
    	FirstLevelMedical firstLevelMedical = new FirstLevelMedical();
    	firstLevelMedical.setCitizensGuid(medicalBasicTemplate.getCitizensGuid());
		firstLevelMedical.setHospitalId(1);
		firstLevelMedical.setGuid(medicalBasicTemplate.getVisitGuid());
		firstLevelMedical.setTreatmentSignId(1);
		firstLevelMedical.setTreatmentTypeId(1);
		firstLevelMedical.setCreateDate(new Date());
		firstLevelMedical.setUpdateDate(new Date());
		firstLevelMedical.setStatus(1);
    	return firstLevelMedical;
    }

    public String getGuid() {
        return guid;
    }

    public void setGuid(String guid) {
        this.guid = guid == null ? null : guid.trim();
    }

    public Integer getHospitalId() {
        return hospitalId;
    }

    public void setHospitalId(Integer hospitalId) {
        this.hospitalId = hospitalId;
    }

    public String getCitizensGuid() {
        return citizensGuid;
    }

    public void setCitizensGuid(String citizensGuid) {
        this.citizensGuid = citizensGuid == null ? null : citizensGuid.trim();
    }

    public String getTreatmentNo() {
        return treatmentNo;
    }

    public void setTreatmentNo(String treatmentNo) {
        this.treatmentNo = treatmentNo == null ? null : treatmentNo.trim();
    }

    public Date getTreatmentDate() {
        return treatmentDate;
    }

    public void setTreatmentDate(Date treatmentDate) {
        this.treatmentDate = treatmentDate;
    }

    public Integer getTreatmentSignId() {
        return treatmentSignId;
    }

    public void setTreatmentSignId(Integer treatmentSignId) {
        this.treatmentSignId = treatmentSignId;
    }

    public Integer getTreatmentTypeId() {
        return treatmentTypeId;
    }

    public void setTreatmentTypeId(Integer treatmentTypeId) {
        this.treatmentTypeId = treatmentTypeId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}